package com.secondHandPlatform.service.impl;

import com.secondHandPlatform.entity.Focus;
import com.secondHandPlatform.mapper.FocusMapper;
import com.secondHandPlatform.service.IFocusService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author team
 * @since 2023-05-18
 */
@Service
public class FocusServiceImpl extends ServiceImpl<FocusMapper, Focus> implements IFocusService {

    @Autowired
    private FocusMapper focusMapper;

    @Override
    public List<Map<String, Object>> selectFocusByUser(int userId) {
        return focusMapper.selectFocusByUser(userId);
    }
}
